import baseApi from './baseApi'

export default {
  findRole(parms) {
    return baseApi.getApi('/role/find', parms);
  },
  getRole(id) {
    return baseApi.getUrlApi('/role/get', id);
  },
  deleteRole(ids) {
    return baseApi.getUrlApi('/role/deletes', ids);
  },
  saveRole(jsonParms) {
    return baseApi.postApi('/role/save', jsonParms);
  },
  allRoles() {
    return baseApi.getApi('/role/allRoles');
  }
}